package com.bjsxt;

/**
 * 市场部，具体的执行者部门
 *
 * @author melo
 */
public class Market implements Department {

    private final Mediator mediator;

    public Market(Mediator mediator) {
        super();
        this.mediator = mediator;
        mediator.register("market", this);
    }

    @Override
    public void selfAction() {
        System.out.println("market:接项目");
    }

    @Override
    public void outAction() {
        System.out.println("market:要钱");
        mediator.command("financial");
    }

}
